The EXIT procedure quits IDL and exits back to the operating system. All buffers are flushed and open files are closed. The values of all variables that were not saved are lost.
See Notes on the EXIT Procedure for more information on this topic.
EXIT [, /NO_CONFIRM] [, STATUS=code]
None.
Set this keyword to suppress any confirmation dialog that would otherwise be displayed in a GUI version of IDL such as the IDL Workbench.
Set this keyword equal to an exit status code that will be returned when IDL exits. For example, on a UNIX system using the Bourne shell:
Start IDL:
$ idl
Exit IDL specifying exit status 45:
exit, status=45
Display last exit status code:
$ echo $?
The following displays:
45
In a bash environment (IDL Unix command line), the status code passed to the EXIT procedure goes into the $? variable. The supported values of this variable are 0-255. Values outside of this range will wrap to fit within the range.
In a DOS environment (IDL Windows command line), the status code passed to the EXIT procedure goes into the ERRORLEVEL variable. The supported values of this variable are -1073741823 to 1073741823. Values outside of this range will be truncated.
In the IDL workbench environment, the status code passed to the IDL EXIT procedure gets passed back out to the shell that started the idlde process, as described above, with 2 important differences:
launcher.suppressErrors.EXIT, STATUS=1 in the IDL workbench will shut down and immediately restart the workbench.|
Original |
Introduced |